package com.ssl.tensquare.recruit.service;

import com.ssl.tensquare.recruit.dao.EnterpriseDao;
import com.ssl.tensquare.recruit.pojo.Enterprise;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述：
 *
 * @author ssl
 * @create 2019/06/27 15:34
 */
@Service
public class EnterpriseService {

    @Autowired
    private EnterpriseDao enterpriseDao;

    /**
     * 查询热门企业列表
     * @return
     */
    public List<Enterprise> findByIsHot() {
        return enterpriseDao.findByIshot(Boolean.toString(true));
    }
}
